import request from '@/utils/request'
function getUrl(url) { return '/api/' + url }


//添加设备维保信息
export function addInEquipmentMaintenance(data) {
    return request({
        url: getUrl("admin/equipmentMaintenance/addInEquipmentMaintenance"),
        method: 'post',
        data
    })
}

//更新设备维保信息
export function updateInEquipmentMaintenance(data) {
    return request({
        url: getUrl("admin/equipmentMaintenance/updateInEquipmentMaintenance"),
        method: 'post',
        data
    })
}


export function deleteInEquipmentMaintenance(data) {
    return request({
        url: getUrl("admin/equipmentMaintenance/deleteInEquipmentMaintenance"),
        method: 'post',
        data
    })
}


//获取设备维保数据 getInEquipmentMaintenanceVo
export function getInEquipmentMaintenanceVo(data) {
    return request({
        url: getUrl("admin/equipmentMaintenance/getInEquipmentMaintenanceVo"),
        method: 'post',
        data
    })
}